package com.ruoyi.mp.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.db.domain.system.PcPlayShow;
import com.ruoyi.mp.service.IPcPlayShowService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 玩法说明Controller
 * 
 * @author ruoyi
 * @date 2022-09-27
 */
@Api(value = "玩法说明",tags ="玩法说明")
@RestController
@RequestMapping("/mp/show")
public class PcPlayShowController extends BaseController
{
    private static Logger log = LoggerFactory.getLogger(PcPlayShowController.class);
    @Autowired
    private IPcPlayShowService pcPlayShowService;

    /**
     * 查询玩法说明列表
     */
    @ApiOperation(value = "查询玩法说明列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="pcPlayShow",value="玩法说明",paramType="form")
    })
    @GetMapping("/list")
    public TableDataInfo list(PcPlayShow pcPlayShow)
    {
        try {
            startPage();
            List<PcPlayShow> list = pcPlayShowService.selectPcPlayShowList(pcPlayShow);
            return getDataTable(list);
        }catch (Exception e){
            log.error("玩法说明发生异常",e);
        }
        return null;
    }

}
